package com.zhehekeji.opsys.api.entity;

// Generated 2017-3-27 16:00:54 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TSigninProduct generated by hbm2java
 */
@Entity
@Table(name="t_signin_product")
public class TSigninProduct implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5539197576058826520L;
	private Long id;
	private String productCode;
	private String productName;
	private Integer orderGoldNum;
	private Integer signinGoldNum;
	private Integer sequence;
	private Date createTime;
	private Integer status;
	private Long cpCode;
	private TSignin tsignin;

	public TSigninProduct() {
	}

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="PRODUCT_CODE",length=64,nullable=true)
	public String getProductCode() {
		return this.productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	@Column(name="PRODUCT_NAME",length=128,nullable=true)
	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}
	@Column(name="ORDER_GOLD_NUM",length=11,nullable=true)
	public Integer getOrderGoldNum() {
		return orderGoldNum;
	}

	public void setOrderGoldNum(Integer orderGoldNum) {
		this.orderGoldNum = orderGoldNum;
	}
	@Column(name="SIGNIN_GOLD_NUM",length=11,nullable=true)
	public Integer getSigninGoldNum() {
		return signinGoldNum;
	}

	public void setSigninGoldNum(Integer signinGoldNum) {
		this.signinGoldNum = signinGoldNum;
	}

	@Column(name="SEQUENCE",length=11,nullable=true)
	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME", nullable=true)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name="STATUS",length=2,nullable=true)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	@Column(name="CP_CODE",length=20,nullable=true)
	public Long getCpCode() {
		return this.cpCode;
	}

	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}
	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.EAGER,optional=true)
	@JoinColumn(name="SIGNIN_ID")
	public TSignin getTsignin() {
		return tsignin;
	}

	public void setTsignin(TSignin tsignin) {
		this.tsignin = tsignin;
	}
}
